<?php
include ("checkvalid.php");
$username = $_POST['username'];
$sql = "select * from userinfo where name='$username'";
$rs = mysql_query($sql) or die("db error");
$row = mysql_fetch_array($rs);
$sign = $row['signature'];
if ($sign == '') {
	$sign = '快来填写签名吧~';
}
$rsArr= array("status"=>200, "id"=>$row['id'], "mobile"=>$row['mobile'], "signature"=>urlencode($sign), 
	"regdate"=>$row['regdate'], "verified"=>$row['verified'], "realname"=>$row['real_name'], "sex"=>$row['sex'], "studentid"=>$row['studentid'],
	"age"=>$row['age']);
echo urldecode(json_encode($rsArr));